{include file="public/header" /}
<style>
    .layui-flow-more{
        padding: 10px;
    }

    .total {
        height: 1rem;
        font-size: 0.625rem;
        color: var(--cl);
        /*display: flex;*/
        align-items: center;
        justify-content: center;
        background-color: var(--bc);
        border-radius: 1rem;
        padding: 0 0.3rem;
        margin-left: 0.5rem;
    }
</style>
<body class="hide-top bgc">
<div class="earnings-container">
    <img src="/static/index/img/icon36.png" alt="">
    <div class="earnings-content">
        <div class="earnings-hd flex-center">
            <i class="layui-icon layui-icon-left flex-center" onclick="history.go(-1)"></i>部门业绩
        </div>

        <div class="my-team-content bgc">
            <p class="title"></p>
            <ul class="team-list tpl_list"></ul>
        </div>
    </div>
</div>

<script id="template" type="text/html">
    {{# for(var i=0 ;i < d.data.length; i++){ }}
    <li>
        <p class="flex-center">
            <img src="{{d.data[i].fresh.photo ? d.data[i].fresh.photo:'/static/index/img/photo.png'}}" alt="">
        </p>
        <div class="rgt">
            <div class="flex-layout">
                <p class="name">{{d.data[i].fresh.nickname}} {{# if(d.data[i].fresh.level){ }}<span>{{d.data[i].fresh.level.title}}</span>{{# } }}<span>{{d.data[i].fresh.position}}部门</span></p>
                <p>新增业绩/复购业绩</p>
            </div>
            <div class="flex-layout">
                <p>{{d.data[i].fresh.mobile}} </p>
                <p class="price"> <span>{{d.data[i].fresh.newly_position_1}}/{{d.data[i].fresh.newly_position_2}}</span></p>
            </div>
        </div>
    </li>
    {{# } }}
</script>
</body>

{include file="public/footer"/}
<script>
    $(function () {
        getFlow(1, "{:url('user/my_place')}");
    })

</script>
</html>